<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of orderinfomodel
 *
 * @author lucky
 */
include_once APPPATH . "core/base_model.php";
class orderpushmodel extends base_model {

    private static $table = 'order_pushed';

    public function __construct() {
        parent::__construct();
        $this->load->database('apach');
    }
    
    /**
     * 读取push设置
     *
     * @return mixed
     */
    public function getOrderById($order_id,$fields = '*') {
        if (!$order_id) {
            return NULL;
        }
        $fields && $this->db->select($fields);
        $this->db->where('order_id', $order_id);
        return $this->get(self::$table)->row();
    }

}
